mudbox::uInt16Channel Class Reference

#include <image.h>

List of all members.


Detailed Description

The data type for a 16 bit image channel. 0-65535 maps to 0.0 to 1.0.

Public Member Functions

  uInt16Channel (const float32Channel &d)
  uInt16Channel (const float16Channel &d)
  uInt16Channel (const uInt16Channel &d)
  uInt16Channel (const uInt8Channel &d)
  uInt16Channel (uInt16 d)
  uInt16Channel ()
uInt16Channel operator= (const float32Channel &d)
uInt16Channel operator= (const float16Channel &d)
uInt16Channel operator= (const uInt16Channel &d)
uInt16Channel operator= (uInt16 d)
uInt16Channel operator= (const uInt8Channel &d)
  operator float () const
  operator half_ () const
  operator uInt16 () const
  operator uInt8 () const

Constructor & Destructor Documentation

mudbox::uInt16Channel::uInt16Channel const float32Channel d  )  [inline]
 
00328 { m_data = uInt16(d); }
mudbox::uInt16Channel::uInt16Channel const float16Channel d  )  [inline]
 
00329 { m_data = uInt16(d); }
mudbox::uInt16Channel::uInt16Channel const uInt16Channel d  )  [inline]
 
00144 { m_data = uInt16(d); }
mudbox::uInt16Channel::uInt16Channel const uInt8Channel d  )  [inline]
 
00145 { m_data = uInt16(d); }
mudbox::uInt16Channel::uInt16Channel uInt16  d  )  [inline]
 
00146 { m_data = (d); }
mudbox::uInt16Channel::uInt16Channel  )  [inline]
 
00147 {}

Member Function Documentation

uInt16Channel & mudbox::uInt16Channel::operator= const float32Channel d  )  [inline]
 
00333 {
00334     m_data = uInt16(d);
00335     return *this;
00336 }
uInt16Channel & mudbox::uInt16Channel::operator= const float16Channel d  )  [inline]
 
00340 {
00341     m_data = uInt16(d);
00342     return *this;
00343 }
uInt16Channel& mudbox::uInt16Channel::operator= const uInt16Channel d  )  [inline]
 
00153     {
00154         m_data = uInt16(d);
00155         return *this;
00156     }
uInt16Channel& mudbox::uInt16Channel::operator= uInt16  d  )  [inline]
 
00159     {
00160         m_data = uInt16(d);
00161         return *this;
00162     }
uInt16Channel& mudbox::uInt16Channel::operator= const uInt8Channel d  )  [inline]
 
00165     {
00166         m_data = uInt16(d);
00167         return *this;
00168     }
mudbox::uInt16Channel::operator float  )  const [inline]
 
00170 { return m_data * (1.0f/65535.0f); }
mudbox::uInt16Channel::operator half_  )  const [inline]
 
00171 { return half_(m_data * (1.0f/65535.0f)); }
mudbox::uInt16Channel::operator uInt16  )  const [inline]
 
00172 { return m_data;               }
mudbox::uInt16Channel::operator uInt8  )  const [inline]
 
00173 { return uInt8(m_data >> 8);   }

mudbox::uInt16Channel mudbox::uInt16Channel mudbox::uInt16Channel mudbox::uInt16Channel mudbox::uInt16Channel mudbox::uInt16Channel mudbox::uInt16Channel mudbox::uInt16Channel mudbox::uInt16Channel mudbox::uInt16Channel
mudbox::uInt16Channel mudbox::uInt16Channel mudbox::uInt16Channel mudbox::uInt16Channel mudbox::uInt16Channel mudbox::uInt16Channel mudbox::uInt16Channel mudbox::uInt16Channel mudbox::uInt16Channel mudbox::uInt16Channel